package request

type Login struct {
	Name     string `form:"name" json:"name" xml:"name" binding:"required"`
	Password string `form:"password" json:"password" xml:"password" binding:"required"`
}

type EatList struct {
	Types int `form:"types" json:"types" xml:"types" binding:"required"`
}

type CreatedOrder struct {
	TakeoutId int    `form:"takeout_id" json:"takeout_id" xml:"takeout_id" binding:"required"`
	BuyNum    int    `form:"buy_num" json:"buy_num" xml:"buy_num" binding:"required"`
	PayTypes  int    `form:"pay_types" json:"pay_types" xml:"pay_types" binding:"required"`
	Coupon    int    `form:"coupon" json:"coupon" xml:"coupon" binding:"required"`
	Notes     string `form:"notes" json:"notes" xml:"notes" binding:"required"`
}

type AddCoupon struct {
	CouponsPrice float64 `form:"coupons_price" json:"coupons_price" xml:"coupons_price" binding:"required"`
	Name         string  `form:"name" json:"name" xml:"name" binding:"required"`
	Status       int     `form:"status" json:"status" xml:"status" binding:"required"`
}
